package com.jt.Demo05;

import com.jt.Demo03.SpringCatConfig;
import com.jt.Demo05.config.SpringConfig;
import com.jt.Demo05.controller.UserController;
import com.jt.Demo05.mapper.UserMapper;
import com.jt.Demo05.mapper.UserMapperImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Spring_MVC {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserController userController = context.getBean(UserController.class);
        userController.addUser();

    }
}
